package org.edu.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Author: 陈炜凡
 * @Description: TODO
 * @DateTime: 2021/8/1 20:23
 */
@Data
//数据表名
//返回值变程对象本身
@Accessors(chain = true)
//重写toString方法
@EqualsAndHashCode(callSuper = false)
public class VeBaseUserEntity {
    /**主键id*/
    @ApiModelProperty(value = "主键id")
    @TableField(value = "id")
    private String id;

    @ApiModelProperty(value = "账号")
    @TableField(value = "username")
    private String username;

    @ApiModelProperty(value = "名字")
    @TableField(value = "realname")
    private String realName;

    @ApiModelProperty(value = "名字")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(value = "部门id")
    @TableField(value = "dept_id")
    private String deptId;
}
